
export const TABLE_COLUMNS = [
  {
    title: '四级类代码',
    key: 'categoryNo',
  },
  {
    title: '四级类名称',
    key: 'categoryName',
    sortable: true
  },
  {
    title: '品牌',
    key: 'brandName',
  },
  /* {
    title: '其他品牌',
    key: 'otherBrand'
  }, */
  {
    title: '商品名称',
    key: 'productName',
    type: 'inputNoLimit',
    maxlength: 30,
    notShowTip: true,
    width: 160,
    sortable: true
  },
  {
    title: '规格',
    key: 'specDetail',
    type: 'inputNoLimit',
    maxlength: 30,
    notShowTip: true,
    width: 160
  },
  {
    title: '计量单位',
    key: 'unitName',
  },
  {
    title: '成本价',
    key: 'costPriceStr',
    type: 'inputNumChange',
    notShowTip: true,
    width: 160
  },
  {
    title: '售价',
    key: 'sellPriceStr',
    type: 'inputNumChange',
    notShowTip: true,
    width: 160
  }
]

export const ERROR_COL = [{
  title: '异常原因',
  key: 'errorMsg',
  sortable: true
}]

export const PITCURE_COL = [{
  title: '图片状态',
  key: 'imageStatus'
}]

export const VIEW_TABLE_COLUMNS = TABLE_COLUMNS.map(item => {
  if (item.type) return { title: item.title, key: item.key, sortable: item.sortable };
  return item;
})

export const CacheKey = 'temporary-project-add-uuids';
